package vip.sweet.biz.modular.cultural.service.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vip.sweet.biz.modular.cultural.entity.BizCulturalContentTags;
import vip.sweet.biz.modular.cultural.mapper.BizCulturalContentTagsMapper;
import vip.sweet.biz.modular.cultural.params.BizCulturalContentTagsAddParams;
import vip.sweet.biz.modular.cultural.service.BizCulturalContentTagsService;

/**
 * @author ASUS
 * @Date 2025/10/5 0:02
 * @Descripition
 */
@Service
public class BizCulturalContentTagsServiceImpl extends ServiceImpl<BizCulturalContentTagsMapper, BizCulturalContentTags> implements BizCulturalContentTagsService {
    @Override
    public boolean add(BizCulturalContentTagsAddParams addCulturalContentTagsParams) {
        if (ObjectUtil.isNotEmpty(addCulturalContentTagsParams))
            return save(BeanUtil.toBean(addCulturalContentTagsParams, BizCulturalContentTags.class));
        return false;
    }
}
